Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade @playwright/test from 1.48.2 to 1.49.1 #99

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nerdy-tech-com-gitub
Copy link
Owner

@nerdy-tech-com-gitub nerdy-tech-com-gitub commented Jan 4, 2025

snyk-top-banner

Snyk has created this PR to upgrade @playwright/test from 1.48.2 to 1.49.1.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 77 versions ahead of your current version.

  • The recommended version was released 25 days ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
medium severity Improper Input Validation
SNYK-JS-NANOID-8492085
44 No Known Exploit
medium severity Improper Input Validation
SNYK-JS-NANOID-8492085
44 No Known Exploit
Release notes
Package name: @playwright/test
  • 1.49.1 - 2024-12-10

    Highlights

    #33802 - [Bug]: Codegen's Clear button doesn't work if not recording
    #33806 - [Bug]: playwright hangs while waiting for pending navigations
    #33787 - [Bug]: VSC extension isn't capturing all entered text
    #33788 - [Regression]: Double clicking the steps in trace viewer doesn't filter actions
    #33772 - [Bug]: aria_snapshot generates invalid yaml when combined with an aria-label attribut
    #33791 - [Bug]: text input with number value raises "container is not iterable" with to_match_aria_snapshot
    #33644 - [Bug]: getByRole can't find element with the accessible name from label element when aria-labelledby is not valid
    #33660 - [Regression]: Unable to open Playwright UI in Dark Mode

    Browser Versions

    • Chromium 131.0.6778.33
    • Mozilla Firefox 132.0
    • WebKit 18.2

    This version was also tested against the following stable channels:

    • Google Chrome 130
    • Microsoft Edge 130
  • 1.49.1-beta-1735303389000 - 2024-12-27
  • 1.49.1-beta-1733793925000 - 2024-12-10
  • 1.49.0 - 2024-11-18

    Aria snapshots

    New assertion expect(locator).toMatchAriaSnapshot() verifies page structure by comparing to an expected accessibility tree, represented as YAML.

    await page.goto('https://playwright.dev');
    await expect(page.locator('body')).toMatchAriaSnapshot(`
      - banner:
        - heading /Playwright enables reliable/ [level=1]
        - link "Get started"
        - link "Star microsoft/playwright on GitHub"
      - main:
        - img "Browsers (Chromium, Firefox, WebKit)"
        - heading "Any browser • Any platform • One API"
    `);

    You can generate this assertion with Test Generator and update the expected snapshot with --update-snapshots command line flag.

    Learn more in the aria snapshots guide.

    Test runner

    Breaking: channels chrome, msedge and similar switch to new headless

    This change affects you if you're using one of the following channels in your playwright.config.ts:

    • chrome, chrome-dev, chrome-beta, or chrome-canary
    • msedge, msedge-dev, msedge-beta, or msedge-canary

    What do I need to do?

    After updating to Playwright v1.49, run your test suite. If it still passes, you're good to go. If not, you will probably need to update your snapshots, and adapt some of your test code around PDF viewers and extensions. See issue #33566 for more details.

    Other breaking changes

    • There will be no more updates for WebKit on Ubuntu 20.04 and Debian 11. We recommend updating your OS to a later version.
    • Package @ playwright/experimental-ct-vue2 will no longer be updated.
    • Package @ playwright/experimental-ct-solid will no longer be updated.

    Try new Chromium headless

    You can opt into the new headless mode by using 'chromium' channel. As official Chrome documentation puts it:

    New Headless on the other hand is the real Chrome browser, and is thus more authentic, reliable, and offers more features. This makes it more suitable for high-accuracy end-to-end web app testing or browser extension testing.

    See issue #33566 for the list of possible breakages you could encounter and more details on Chromium headless. Please file an issue if you see any problems after opting in.

    import { defineConfig, devices } from '@ playwright/test';

    export default defineConfig({
    projects: [
    {
    name: 'chromium',
    use: { ...devices['Desktop Chrome'], channel: 'chromium' },
    },
    ],
    });

    Miscellaneous

    • <canvas> elements inside a snapshot now draw a preview.
    • New method tracing.group() to visually group actions in the trace.
    • Playwright docker images switched from Node.js v20 to Node.js v22 LTS.

    Browser Versions

    • Chromium 131.0.6778.33
    • Mozilla Firefox 132.0
    • WebKit 18.2

    This version was also tested against the following stable channels:

    • Google Chrome 130
    • Microsoft Edge 130
  • 1.49.0-beta-1733521450000 - 2024-12-06
  • 1.49.0-beta-1733285915000 - 2024-12-04
  • 1.49.0-beta-1733246833000 - 2024-12-03
  • 1.49.0-beta-1732799609000 - 2024-11-28
  • 1.49.0-beta-1732795940000 - 2024-11-28
  • 1.49.0-beta-1732795768000 - 2024-11-28
  • 1.49.0-beta-1732795640000 - 2024-11-28
  • 1.49.0-beta-1732210972000 - 2024-11-21
  • 1.49.0-beta-1732200847000 - 2024-11-21
  • 1.49.0-beta-1732183793000 - 2024-11-21
  • 1.49.0-beta-1732179895000 - 2024-11-21
  • 1.49.0-beta-1732065049000 - 2024-11-20
  • 1.49.0-beta-1732021985000 - 2024-11-19
  • 1.49.0-beta-1732008569000 - 2024-11-19
  • 1.49.0-beta-1731954680000 - 2024-11-18
  • 1.49.0-beta-1731772650000 - 2024-11-16
  • 1.49.0-beta-1731718789000 - 2024-11-16
  • 1.49.0-beta-1731709328000 - 2024-11-15
  • 1.49.0-beta-1731703794000 - 2024-11-15
  • 1.49.0-beta-1731687401000 - 2024-11-15
  • 1.49.0-beta-1731672404000 - 2024-11-15
  • 1.49.0-beta-1731616844000 - 2024-11-14
  • 1.49.0-beta-1731595428000 - 2024-11-14
  • 1.49.0-beta-1731591637000 - 2024-11-14
  • 1.49.0-beta-1731582214000 - 2024-11-14
  • 1.49.0-beta-1731562490000 - 2024-11-14
  • 1.49.0-beta-1731497689000 - 2024-11-13
  • 1.49.0-alpha-2024-11-13 - 2024-11-13
  • 1.49.0-alpha-2024-11-12 - 2024-11-12
  • 1.49.0-alpha-2024-11-11 - 2024-11-11
  • 1.49.0-alpha-2024-11-10 - 2024-11-10
  • 1.49.0-alpha-2024-11-09 - 2024-11-09
  • 1.49.0-alpha-2024-11-08 - 2024-11-08
  • 1.49.0-alpha-2024-11-07 - 2024-11-07
  • 1.49.0-alpha-2024-11-06 - 2024-11-06
  • 1.49.0-alpha-2024-11-05 - 2024-11-05
  • 1.49.0-alpha-2024-11-04 - 2024-11-04
  • 1.49.0-alpha-2024-11-03 - 2024-11-03
  • 1.49.0-alpha-2024-11-02 - 2024-11-02
  • 1.49.0-alpha-2024-11-01 - 2024-11-01
  • 1.49.0-alpha-2024-10-31 - 2024-10-31
  • 1.49.0-alpha-2024-10-30 - 2024-10-30
  • 1.49.0-alpha-2024-10-29 - 2024-10-29
  • 1.49.0-alpha-2024-10-28 - 2024-10-28
  • 1.49.0-alpha-2024-10-27 - 2024-10-27
  • 1.49.0-alpha-2024-10-26 - 2024-10-26
  • 1.49.0-alpha-2024-10-25 - 2024-10-25
  • 1.49.0-alpha-2024-10-24 - 2024-10-24
  • 1.49.0-alpha-2024-10-23 - 2024-10-23
  • 1.49.0-alpha-2024-10-22 - 2024-10-22
  • 1.49.0-alpha-2024-10-21 - 2024-10-21
  • 1.49.0-alpha-2024-10-20 - 2024-10-20
  • 1.49.0-alpha-2024-10-19 - 2024-10-19
  • 1.49.0-alpha-2024-10-18 - 2024-10-18
  • 1.49.0-alpha-2024-10-17 - 2024-10-17
  • 1.49.0-alpha-2024-10-16 - 2024-10-16
  • 1.49.0-alpha-2024-10-15 - 2024-10-15
  • 1.49.0-alpha-2024-10-14 - 2024-10-14
  • 1.49.0-alpha-2024-10-13 - 2024-10-13
  • 1.49.0-alpha-2024-10-12 - 2024-10-12
  • 1.49.0-alpha-2024-10-11 - 2024-10-11
  • 1.49.0-alpha-2024-10-10 - 2024-10-10
  • 1.49.0-alpha-2024-10-09 - 2024-10-09
  • 1.49.0-alpha-2024-10-08 - 2024-10-08
  • 1.49.0-alpha-2024-10-07 - 2024-10-07
  • 1.49.0-alpha-2024-10-06 - 2024-10-06
  • 1.49.0-alpha-2024-10-05 - 2024-10-05
  • 1.49.0-alpha-2024-10-04 - 2024-10-04
  • 1.49.0-alpha-2024-10-03 - 2024-10-03
  • 1.49.0-alpha-2024-10-02 - 2024-10-02
  • 1.49.0-alpha-2024-10-01 - 2024-10-01
  • 1.49.0-alpha-1730721360000 - 2024-11-04
  • 1.49.0-alpha-1728937530000 - 2024-10-14
  • 1.48.2 - 2024-10-25

    Highlights

    #33141 - [Bug]: UI Mode crashed
    #33219 - [BUG] Trace Viewer PWA crashes with "Aw, Snap!"
    #33086 - [Bug]: UI Mode Memory problem
    #33000 - [Regression]: Inspector and Browser doesn't close on CTRL+C
    #33204 - [Bug]: Chrome tab and inspector not closing after terminating session in terminal

    Browser Versions

    • Chromium 130.0.6723.19
    • Mozilla Firefox 130.0
    • WebKit 18.0

    This version was also tested against the following stable channels:

    • Google Chrome 129
    • Microsoft Edge 129
from @playwright/test GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Summary by Sourcery

Upgrade Playwright to version 1.49.1.

New Features:

  • Add expect(locator).toMatchAriaSnapshot() assertion to verify page structure by comparing to an expected accessibility tree, represented as YAML.
  • Add testConfig.tsconfig option to specify a single tsconfig to be used for all tests.
  • Add test.fail.only() method to focus on a failing test.
  • Add support for multiple setups/teardowns in testConfig.globalSetup and testConfig.globalTeardown.
  • Add 'on-first-failure' value for testOptions.screenshot.
  • Add "previous" and "next" buttons to the HTML report to quickly switch between test cases.
  • Add testInfoError.cause and testError.cause properties mirroring Error.cause.
  • Add preview for <canvas> elements inside a snapshot.
  • Add tracing.group() method to visually group actions in the trace.

Bug Fixes:

  • Fix UI mode crashes and memory problems.
  • Fix trace viewer PWA crashes.
  • Fix chrome tab and inspector not closing after terminating session.
  • Fix codegen's clear button not working if not recording.
  • Fix playwright hanging while waiting for pending navigations.
  • Fix VSC extension not capturing all entered text.
  • Fix double clicking the steps in trace viewer not filtering actions.
  • Fix aria_snapshot generating invalid yaml when combined with an aria-label attribute.
  • Fix text input with number value raising "container is not iterable" with to_match_aria_snapshot.
  • Fix getByRole not finding element with the accessible name from label element when aria-labelledby is not valid.
  • Fix Playwright UI not opening in dark mode.

Tests:

  • Switch chrome, msedge and similar channels to new headless.
  • No more updates for WebKit on Ubuntu 20.04 and Debian 11.
  • No more updates for packages @playwright/experimental-ct-vue2 and @playwright/experimental-ct-solid.
  • Switch Playwright docker images from Node.js v20 to Node.js v22 LTS.

Snyk has created this PR to upgrade @playwright/test from 1.48.2 to 1.49.1.

See this package in npm:
@playwright/test

See this project in Snyk:
https://app.snyk.io/org/nerds-github/project/6bdc0bf1-afe3-4e5e-952f-f1d06480e99b?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sourcery-ai bot commented Jan 4, 2025

Reviewer's Guide by Sourcery

This pull request upgrades @playwright/test from version 1.48.2 to 1.49.1. This upgrade includes several bug fixes, new features like ARIA snapshots, test runner improvements, and important changes to Chromium's headless mode. There are also some breaking changes, such as the switch to new headless for chrome, msedge, and similar channels, and the discontinuation of WebKit updates for older operating systems like Ubuntu 20.04 and Debian 11.

State diagram for Playwright version upgrade changes

stateDiagram-v2
    [*] --> Playwright_1.48.2
    Playwright_1.48.2 --> Playwright_1.49.1: Upgrade

    state Playwright_1.49.1 {
        [*] --> NewFeatures
        [*] --> BugFixes
        [*] --> BreakingChanges

        state NewFeatures {
            AriaSnapshots
            TestRunnerImprovements
        }

        state BugFixes {
            UIModeCrashFixes
            TraceViewerFixes
            InspectorClosingFixes
        }

        state BreakingChanges {
            NewHeadlessMode
            WebKitUpdatesDiscontinued
            ComponentTestingUpdates
        }
    }
Loading

File-Level Changes

Change Details Files
Upgrade @playwright/test package
  • Updated the @playwright/test dependency from version 1.48.2 to 1.49.1 in the e2e/package.json file.
e2e/package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

github-actions bot commented Jan 4, 2025

Label error. Requires exactly 1 of: changelog:.*. Found:

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants